<template>
    <div id="wxlogin"></div>
</template>

<script>
import {GetQueryString,setCookie} from '../../config/common.js'
export default {
    created(){
		setCookie('sid',GetQueryString('sessionid'),1*1000);
		setCookie('uid',GetQueryString('id'),1*1000);
		sessionStorage.setItem('sid',GetQueryString('sessionid'));
		sessionStorage.setItem('uid',GetQueryString('id'));
		let url=sessionStorage.getItem('curl') ? sessionStorage.getItem('curl') : '/search';
		if(url == 'undefined'){
			url = '/search'
		}
		this.$router.replace({path:url})
    }
}
</script>

<style>

</style>
